//
//  SINATecManagerCourseSignItemTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/10.
//  Copyright © 2018年  androidlongs. All rights reserved.
//  未签到详情条目

#import "SINATecManagerCourseSignItemTableViewCell.h"
#import "SINACalendarUtils.h"

@interface SINATecManagerCourseSignItemTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *subNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *yearTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *hourTimeLabel;

@end

@implementation SINATecManagerCourseSignItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(SINATecCourseModel *)model{
    _model = model;
    
    self.subNameLabel.text=model.name;
    
    self.yearTimeLabel.text = [NSString stringWithFormat:@"%@",[SINACalendarUtils getDateStringWithTimeStr:model.starttime andFormat:@"yyyy年MM月dd日"]];
    
    self.hourTimeLabel.text = [NSString stringWithFormat:@"%@ - %@",[SINACalendarUtils getDateStringWithTimeStr:model.starttime andFormat:@"HH:mm"],[SINACalendarUtils getDateStringWithTimeStr:model.endtime andFormat:@"HH:mm"]];
    
    
}

@end
